import 'package:flutter/material.dart';

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('主页'),
        automaticallyImplyLeading: true,
        leading: IconButton(
          icon: const Icon(Icons.arrow_back),
          onPressed: () {
            Navigator.pop(context);
          },
        ),
      ),
      body: const Center(
        child: Text('欢迎来到主页！'),
        // child: Image.asset(
        //   'flutter_logo.png', // 假设你的logo图片命名为logo.png，并放置在项目的res文件夹下
        //   fit: BoxFit.cover,
        // ),
        

      ),
    );
  }
}